<extend name="Public/common"/>
<block name="othercss">
</block>
<block name="header">
<div class="header">
    <div class="clearfix box">
        <a class="save" onclick="save()">保存</a>
        <a class="return" href="javascript:history.back(-1)"><i class="return-icon"></i></a>
        <h2>账户信息</h2>
    </div>
</div>
</block>
<block name="body">
 <form name="frm" id="frm" method="post">
<div class="container bgsum">

     <div class="editname" <if condition="$typeid neq 0">style="display:none"</if>>
    <input type="text" class="text" readonly="readonly" value="手机号:{$member['phone']==''?'未设置':$member['phone']}" />
    </div>
    
     
    <div class="editname" <if condition="$typeid neq 1">style="display:none"</if>>
        昵称<input type="text"  name="nickname" id="nickname" value="{$member.nickname}"  placeholder="请输入昵称" class="text"/>
    </div>
    
     <div class="editname" <if condition="$typeid neq 2">style="display:none"</if>>
        真实姓名<input type="text"  name="realname" id="realname" value="{$memberinfo.realname}" placeholder="请输入姓名" class="text"/>
    </div>
    
       <div class="editname" <if condition="$typeid neq 6">style="display:none"</if>>
        身份证号码<input type="text"  name="idno" id="idno" value="{$memberinfo.idno}" placeholder="请输入身份证号码" class="text"/>
        
        <input type="hidden" name="is_idno" id="is_idno" value="{:$typeid == 6 ? '1' : '0'}" />
          
    </div>
    
    <div <if condition="$typeid neq 3">style="display:none"</if>>
     <div class="editname">
        性别
    </div>
        <div class="select-editname">
        <select name="sex" id="sex">
            <option value="男">男</option>
            <option value="女">女</option>
        </select>
    </div>
    </div>
   
   
   <div  <if condition="$typeid neq 4">style="display:none"</if>>
     <div class="editname">
        生日
    </div>


    <div class="select-editname">
    <select name="year" id="year" class="select1">
     <option value="">选择年</option>
      <for start="1899" end="2015">
       <option value="{$i}">{$i}年</option>
        </for>
       </select>

    </div>
    <div class="select-editname">
        <select name="month" id="month" class="select1">
        <option value="">选择月</option>
        <option value="01">1月</option>
       <option value="02">2月</option>
        <option value="03">3月</option>
        <option value="04">4月</option>
         <option value="05">5月</option>
        <option value="06">6月</option>
        <option value="07">7月</option>
      <option value="08">8月</option>
        <option value="09">9月</option>
         <option value="10">10月</option>
         <option value="11">11月</option>
       <option value="12">12月</option>
        </select>
    </div>
    <div class="select-editname">
      <select name="day" id="day" class="select1">
       <option value="">选择日</option>
          <for start="1" end="10">
          <option value="0{$i}">{$i}日</option>
        </for>
        <for start="10" end="32">
           <option value="{$i}">{$i}日</option>
           </for>
         </select>
    </div>
    </div>
    <div  <if condition="$typeid neq 5">style="display:none"</if>>
    
    <div class="editname">
        所在地区
    </div>
    <div class="select-editname">
     <select name="province" id="province" class="select1">
     <option value="">选择省份</option>
     <foreach name="province" item="prov">
        <option value="{$prov.province}">{$prov.province}</option>
    </foreach>
     </select>
    </div>
    <div class="select-editname"  id="span_city">
    </div>
    <div class="select-editname"  id="span_area">
    </div>
     <input type="hidden" id="hid_province" name="hid_province" value="{$memberinfo.province}" />
     <input type="hidden" id="hid_city" name="hid_city" value="{$memberinfo.city}" />
     <input type="hidden" id="hid_area" name="hid_area" value="{$memberinfo.area}" />
    <div class="select-editname1">
        <input type="text"  name="address" id="address" value="{$memberinfo.address}"  class="text1" placeholder="填写具体地址" />
    </div>
    
    </div>
</div>
</form>
</block>
<block name="otherjs">
    <input type="hidden"  id="url_member_edit" value="{:U('Member/edit_other')}" />
    <script type="text/javascript">
            $("#sex").val("{$memberinfo.sex}");
			$("#month").val("{$memberinfo.month}");
            $("#year").val("{$memberinfo.year}");
            $("#day").val("{$memberinfo.day}");
            var url_city_sel = "{:U('Address/city_sel')}?";//根据省份获取城市列表
            var url_area_sel = "{:U('Address/area_sel')}?";//根据城市获取地区列表
            var url_get_zip = "{:U('Address/get_zip')}?";//根据地区获取邮政编码
            var url_member_edit = "{:U('Member/edit')}";//跳转地址
			var url_member_edit_other = "{:U('Member/edit_other')}";//提交保存地址
             var url_member_change_pasword = "{:U('Member/change_password')}"; //修改密码提交地址
        </script>
        <script src="{$theme_path}/js/member_edit.js?v=20190402_1"></script>
    
</block>

